package com.itheima.Service.Impl;

import com.itheima.Service.OrderService;
import com.itheima.mapper.OrderMapper;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderDetails;
import com.itheima.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;


    @Override
    public List<Order> getOrders() {
        return orderMapper.getOrders();
    }

    @Override
    public OrderDetails getOrderDetailsById(int id) {
        return orderMapper.getOrderDetailsById(id);
    }


}
